package com.danke.lib.pay;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * @author wupuquan
 * @version 1.0
 * @since 2019/1/21 18:13
 */
public class DKPayUtil {

    public static String encodeUTF8(String src) {
        try {
            return URLEncoder.encode(src, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            return "";
        }
    }
}
